package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;
import cn.edu.sdjzu.xg.eagle.util.Condition;
import cn.edu.sdjzu.xg.eagle.util.Pagination;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

/**
 * @author tg.si@188.com
 * @project xg23
 * @date 2025/3/27
 */
public interface SchoolService {
    Collection<School> findAll(Pagination pagination) throws SQLException, BaseException;
    Collection<School> findAll(Pagination pagination, List<Condition> conditionList) throws SQLException, BaseException ;
    Collection<School> findAll() throws SQLException, BaseException ;
    School find(Integer id) throws SQLException,BaseException ;
    boolean delete(Integer id) throws SQLException, BaseException, InvocationTargetException;

    boolean add(School schoolToAdd)throws SQLException, BaseException, InvocationTargetException;
}
